-- GENERATED SPELL FOR [Blackbreath Crony] --


function spell0_9541(pUnit, Event) --@Rupture,n/a--
pUnit:FullCastSpellOnTarget(15583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9541', 10000, 1)
end

function spell1_9541(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(15581,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9541', 613, 1)
end

function Sorts_9541(pUnit, Event)
local choix_sorts_9541 = math.random(0, 1)
if choix_sorts_9541 == 0 then
pUnit:RegisterEvent('spell0_9541', 1, 1)
end
if choix_sorts_9541 == 1 then
pUnit:RegisterEvent('spell1_9541', 1, 1)
end
end

function mob9541_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9541', math.random(1500, 3000), 1)
end

function mob9541_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9541_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9541_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9541, 1, 'mob9541_Action')
RegisterUnitEvent(9541, 2, 'mob9541_Leave')
RegisterUnitEvent(9541, 3, 'mob9541_Kill')
RegisterUnitEvent(9541, 4, 'mob9541_Die')
